package com.xsz.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
/**
 * 
 * @author Bsea
 *
 */
@Entity
@Table(name="tb_blog")
public class Blog implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	
	/**主键ID**/
	@Id
	@Column(length=30)
	private String id;
	/**作者**/
	@Column(length=30)
	private String author;
	/**内容 @Lob表示长字段 默认是longtext类型**/
	@Lob
	private String contents;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getContents() {
		return contents;
	}
	public void setContents(String contents) {
		this.contents = contents;
	}
	
	
	
}
